package com.p7.framework.common;

import com.p7.framework.common.exception.BaseException;

public class ErrorBean {

	private Integer errCode;

	private String errMsg;

	public ErrorBean() {
	}

	public ErrorBean(BaseException e) {
		this.errCode = e.getErrCode();
		this.errMsg = e.getErrMsg();
	}

	public ErrorBean(String errMsg) {
		this.errMsg = errMsg;
		this.errCode = 500;
	}

	public Integer getErrCode() {
		return errCode;
	}

	public void setErrCode(Integer errCode) {
		this.errCode = errCode;
	}

	public String getErrMsg() {
		return errMsg;
	}

	public void setErrMsg(String errMsg) {
		this.errMsg = errMsg;
	}

}
